<html manifest=node.manifest>
<head>
  <meta charset="utf-8">
  <title>Mixly STM32 Arduino</title>
  <script type="text/javascript" src="../../blockly_compressed.js"></script>
  <script type="text/javascript" src="../../core/variables.js"></script>
  <script type="text/javascript" src="../../core/procedures.js"></script>
  <script type="text/javascript" src="../../core/blockly.js"></script>
  <script type="text/javascript" src="../../core/events.js"></script>
  <script type="text/javascript" src="../../core/field_textarea.js"></script>
  <script type="text/javascript" src="../../arduino.js"></script>
  <script type="text/javascript" src="company_pin.js"></script>
  <script type="text/javascript" src="js/drag.js"></script>
  <script type="text/javascript" src="js/code.js"></script>
  <script type="text/javascript" src="digitalPinToInterrupt.js"></script>
  <script type="text/javascript" src="js/Blob.js"></script>
  <script type="text/javascript" src="spin.js"></script>
  <script type="text/javascript" src="js/FileSaver.min.js"></script>
  <script type="text/javascript" src="js/blockly_helper.js"></script>
  <script type="text/javascript" src="jquery-1.11.3.min.js"></script>
  <script src="js/lib/ace/ace.js" type="application/javascript"></script>
  <script src="js/lib/ace/ext-language_tools.js" type="application/javascript"></script>
  <script type="text/javascript" src="myblock.js"></script>
  <script type="text/javascript" src="../../generators/arduino/factory.js"></script>
  <script type="text/javascript" src="../../generators/arduino/pins.js"></script>
  <script type="text/javascript" src="../../generators/arduino/inout.js"></script>
  <script type="text/javascript" src="../../generators/arduino/control.js"></script>
  <script type="text/javascript" src="../../generators/arduino/math.js"></script>
  <script type="text/javascript" src="../../generators/arduino/text.js"></script>
  <script type="text/javascript" src="../../generators/arduino/lists.js"></script>
  <script type="text/javascript" src="../../generators/arduino/logic.js"></script>
  <script type="text/javascript" src="../../generators/arduino/storage.js"></script>
  <script type="text/javascript" src="../../generators/arduino/variables.js"></script>
  <script type="text/javascript" src="../../generators/arduino/procedures.js"></script>
  <script type="text/javascript" src="../../generators/arduino/serial.js"></script>
  <script type="text/javascript" src="../../generators/arduino/actuator.js"></script>
  <script type="text/javascript" src="../../generators/arduino/scoop.js"></script>
  <script type="text/javascript" src="../../generators/arduino/tools.js"></script>
  <script type="text/javascript" src="../../generators/arduino/stm32/sensor.js"></script>
  <script type="text/javascript" src="../../generators/arduino/stm32/display.js"></script>
  <script type="text/javascript" src="../../generators/arduino/stm32/communicate.js"></script>
  <script type="text/javascript" src="../../blocks/arduino/factory.js"></script>
  <script type="text/javascript" src="../../blocks/arduino/pins.js"></script>
  <script type="text/javascript" src="../../blocks/arduino/inout.js"></script>
  <script type="text/javascript" src="../../blocks/arduino/control.js"></script>
  <script type="text/javascript" src="../../blocks/arduino/math.js"></script>
  <script type="text/javascript" src="../../blocks/arduino/text.js"></script>
  <script type="text/javascript" src="../../blocks/arduino/lists.js"></script>
  <script type="text/javascript" src="../../blocks/arduino/logic.js"></script>
  <script type="text/javascript" src="../../blocks/arduino/storage.js"></script>
  <script type="text/javascript" src="../../blocks/arduino/variables.js"></script>
  <script type="text/javascript" src="../../blocks/arduino/procedures.js"></script>
  <script type="text/javascript" src="../../blocks/arduino/actuator.js"></script>
  <script type="text/javascript" src="../../blocks/arduino/serial.js"></script>
  <script type="text/javascript" src="../../blocks/arduino/scoop.js"></script>
  <script type="text/javascript" src="../../blocks/arduino/tools.js"></script>
  <script type="text/javascript" src="../../blocks/arduino/stm32/sensor.js"></script>
  <script type="text/javascript" src="../../blocks/arduino/stm32/display.js"></script>
  <script type="text/javascript" src="../../blocks/arduino/stm32/communicate.js"></script>
  <script src = "init.js"></script>
  <link rel="stylesheet" type="text/css" href="css/color_stm32_arduino.css"/>
  <link rel="stylesheet" type="text/css" href="css/ACEfont.css"/>
</head>
<body onload="init()">
  <table height="100%" width="100%" id="table_whole">
    <tr>
      <td colspan=3>
        <table width="100%">
          <tr id="tabRow" height="1em">
            <td style="vertical-align: center;" id="tab_blocks" class="tabon" onclick="tabClick('blocks')">
             <img style="vertical-align:middle" width="25" src="media/blocks.png"/>
             <span id="span_blocks">Blocks</span>
           </td>
           <td class="tabmin">&nbsp;</td>
           <td style="vertical-align: center;text-align:center;" id="tab_arduino" class="taboff" onclick="tabClick('arduino')">
             <span id="span_arduino">Code</span>
           </td>
           <td class="tabmin">&nbsp;</td>
           <td style="vertical-align: center;text-align:center;display:none;" id="tab_xml" class="taboff" onclick="tabClick('xml')">XML</td>
           <td class="tabcoyright">
            <span id="copyright" style="font-family:'YaHei Consolas Hybrid', 'Microsoft Yahei Light', 'Arial';font-size:12px;color:#999;">copyright</span>
          </td>
          <td class="tabmin">
           <input onclick="Blockly.mainWorkspace.undo(0);" name="undo" type="image" title="undo(ctrl+z)"  src="media/undo.png" style="padding:5px;" onmouseover="this.src='media/undo1.png'" onmousedown="this.src='media/undo2.png'" onmouseup="this.src='media/undo1.png'" onmouseout="this.src='media/undo.png'" width="20" height="20" border="0">
         </td>
         <td class="tabmin">
           <input onclick="Blockly.mainWorkspace.undo(1);" name="redo" type="image" title="redo(ctrl+y)"  src="media/redo.png" style="padding:5px" onmouseover="this.src='media/redo1.png'" onmousedown="this.src='media/redo2.png'" onmouseup="this.src='media/redo1.png'" onmouseout="this.src='media/redo.png'" width="20" height="20" border="0">
         </td>
         <td class="tabmin"style="padding-right:20px">
          <input onclick="JSFuncs.openUrlInBrowser('http://wiki.mixly.org/')" name="help" type="image" src="media/help.png" style="padding:5px" onmouseover="this.src='media/help1.png'" onmousedown="this.src='media/help2.png'" onmouseup="this.src='media/help1.png'" onmouseout="this.src='media/help.png'" width="20" height="20" border="0">
        </td>
        <td class="tabmin" style="padding-right:20px;display:none;">
          <button id="fakeload">LoadXML</button>
          <input type="file" id="load" style="display: none;"/>
        </td>
        <td class="tabmin">
          <select id="languageMenu"></select>
        </td>
        <td class="tabmin">
          <select id="aceTheme" style="width:100px; height:23px; margin-left: 10px;">
           <optgroup label="代码区亮色主题">
            <option value="ace/theme/chrome">Chrome</option>
            <option value="ace/theme/clouds">Clouds</option>
            <option value="ace/theme/crimson_editor">Crimson Editor</option>
            <option value="ace/theme/dawn">Dawn</option>
            <option value="ace/theme/dreamweaver">Dreamweaver</option>
            <option value="ace/theme/eclipse">Eclipse</option>
            <option value="ace/theme/github">GitHub</option>
            <option value="ace/theme/iplastic">IPlastic</option>
            <option value="ace/theme/solarized_light">Solarized Light</option>
            <option value="ace/theme/textmate">TextMate</option>
            <option value="ace/theme/tomorrow">Tomorrow</option>
            <option value="ace/theme/xcode">XCode</option>
            <option value="ace/theme/kuroir">Kuroir</option>
            <option value="ace/theme/katzenmilch">KatzenMilch</option>
            <option value="ace/theme/sqlserver">SQL Server</option>
          </optgroup>
          <optgroup label="代码区暗色主题">
            <option value="ace/theme/ambiance">Ambiance</option>
            <option value="ace/theme/chaos">Chaos</option>
            <option value="ace/theme/clouds_midnight">Clouds Midnight</option>
            <option value="ace/theme/dracula">Dracula</option>
            <option value="ace/theme/cobalt">Cobalt</option>
            <option value="ace/theme/gruvbox">Gruvbox</option>
            <option value="ace/theme/gob">Green on Black</option>
            <option value="ace/theme/idle_fingers">idle Fingers</option>
            <option value="ace/theme/kr_theme">krTheme</option>
            <option value="ace/theme/merbivore">Merbivore</option>
            <option value="ace/theme/merbivore_soft">Merbivore Soft</option>
            <option value="ace/theme/mono_industrial">Mono Industrial</option>
            <option value="ace/theme/monokai">Monokai</option>
            <option value="ace/theme/pastel_on_dark">Pastel on dark</option>
            <option value="ace/theme/solarized_dark">Solarized Dark</option>
            <option value="ace/theme/terminal">Terminal</option>
            <option value="ace/theme/tomorrow_night">Tomorrow Night</option>
            <option value="ace/theme/tomorrow_night_blue">Tomorrow Night Blue</option>
            <option value="ace/theme/tomorrow_night_bright">Tomorrow Night Bright</option>
            <option value="ace/theme/tomorrow_night_eighties">Tomorrow Night 80s</option>
            <option value="ace/theme/twilight">Twilight</option>
            <option value="ace/theme/vibrant_ink">Vibrant Ink</option>
          </optgroup>
        </select>
      </td>
      <script>
       document.getElementById('span_blocks').textContent = MSG['tab_blocks'];
       document.getElementById('span_arduino').textContent = MSG['tab_arduino'];
     </script>
   </tr>
 </table>
</td>
</tr>
<tr>
  <td height="100%" width="75%" id="content_area"></td>
  <td style="display:none;height:100%;width:0.3%;background: #ddd;cursor: w-resize;" id="mid_td"></td>
  <td width="25%" style="background-color:#eee;display:none;" id="side_code_parent">
    <div id="side_code" wrap="off" readonly></div>
  </td>
  <div id="sidebar" class="right-top" onclick="sidecodeClick()"></div>
</tr>
</table>
<div id="content_blocks" class="content"></div>
<div id="content_arduino" class="content" wrap="off" ></div>
<textarea id="content_xml" class="content" wrap="off" readonly></textarea>
<xml id="toolbox" style="display: none">
  <category name="" id="catInOut" colour="20">
    <block type="inout_highlow">
    </block>
    <block type="inout_digital_write2">
     <value name="PIN">
      <shadow type="pins_digital"></shadow>
    </value>
    <value name="STAT">
      <shadow type="inout_highlow">
      </shadow>
    </value>
  </block>
  <block type="inout_digital_read2">
    <value name="PIN">
      <shadow type="pins_digital"></shadow>
    </value>
  </block>
  <block type="inout_analog_write">
    <value name="PIN">
      <shadow type="pins_pwm"></shadow>
    </value>
    <value name="NUM">
      <shadow type="math_number">
        <field name="NUM">0</field>
      </shadow>
    </value>
  </block>
  <block type="inout_analog_read">
    <value name="PIN">
      <shadow type="pins_analog"></shadow>
    </value>
  </block>
  <block type="controls_attachInterrupt">
    <value name="PIN">
      <shadow type="pins_interrupt"></shadow>
    </value>
  </block>
  <block type="controls_detachInterrupt">
    <value name="PIN">
      <shadow type="pins_interrupt"></shadow>
    </value>
  </block>
  <block type="inout_pulseIn">
    <value name="PIN">
      <shadow type="pins_digital"></shadow>
    </value>
  </block>
  <block type="inout_pulseIn2">
    <value name="PIN">
      <shadow type="pins_digital"></shadow>
    </value>
    <value name="TIMEOUT">
      <shadow type="math_number">
        <field name="NUM">1000000</field>
      </shadow>
    </value>
  </block>
  <block type="inout_pinMode">
    <value name="PIN">
      <shadow type="pins_digital"></shadow>
    </value>
  </block>
  <block type="inout_shiftout">
    <value name="PIN1">
      <shadow type="pins_digital"></shadow>
    </value>
    <value name="PIN2">
      <shadow type="pins_digital"></shadow>
    </value>
    <value name="DATA">
      <shadow type="math_number">
        <field name="NUM">0</field>
      </shadow>
    </value>
  </block>
</category>
<category id="catControl"  colour="120">
  <block type="base_setup">
  </block>
  <block type="controls_end_program">
  </block>
  <block type="do_while">
    <value name="select_data">
      <shadow type="logic_boolean">
      </shadow>
    </value>
  </block>
  <block type="controls_whileUntil">
    <value name="BOOL">
      <shadow type="logic_boolean">
      </shadow>
    </value>
  </block>
  <block type="controls_delay">
   <value name="DELAY_TIME">
    <shadow type="math_number">
      <field name="NUM">1000</field>
    </shadow>
  </value>
</block>
<block type="controls_if">
</block>
<block type="controls_switch_case">
</block>
<block type="controls_for">
 <value name="FROM">
  <shadow type="math_number">
    <field name="NUM">1</field>
  </shadow>
</value>
<value name="TO">
  <shadow type="math_number">
    <field name="NUM">10</field>
  </shadow>
</value>
<value name="STEP">
  <shadow type="math_number">
    <field name="NUM">1</field>
  </shadow>
</value>
</block>
<block type="controls_flow_statements">
</block>
<block type="controls_millis">
</block>
</category>
<category id="catMath"  colour="230">
  <block type="math_number">
  </block>
  <block type="math_arithmetic">
    <value name="A">
      <shadow type="math_number">
        <field name="NUM">1</field>
      </shadow>
    </value>
    <value name="B">
      <shadow type="math_number">
        <field name="NUM">1</field>
      </shadow>
    </value>
  </block>
  <block type="math_bit">
    <value name="A">
      <shadow type="math_number">
        <field name="NUM">0</field>
      </shadow>
    </value>
    <value name="B">
      <shadow type="math_number">
        <field name="NUM">0</field>
      </shadow>
    </value>
  </block>
  <block type="math_trig">
  </block>
  <block type="variables_operation">
    <value name="data">
      <shadow type="math_number">
        <field name="NUM">1</field>
      </shadow>
    </value>
    <value name="variables">
      <shadow type="math_number">
        <field name="NUM">item</field>
      </shadow>
    </value>
  </block>
  <block type="math_auto_add_or_minus">
    <field name="math_auto_add_minus_type">++</field>
    <value name="math_auto_add_minus_output">
      <shadow type="variables_get">
        <field name="VAR">item</field>
      </shadow>
    </value>
  </block>
  <block type="math_to_int">
  </block>
  <block type="math_SizeOf">
    <value name="data">
      <shadow type="arduino_variate_type">
      </shadow>
    </value>
  </block>
  <block type="math_max_min">
    <value name="A">
      <shadow type="math_number">
        <field name="NUM">1</field>
      </shadow>
    </value>
    <value name="B">
      <shadow type="math_number">
        <field name="NUM">2</field>
      </shadow>
    </value>
  </block>
  <block type="math_random_seed">
    <value name="NUM">
      <shadow type="math_number">
        <field name="NUM">997</field>
      </shadow>
      <block type="controls_millis">
        <field name="UNIT">millis</field>
      </block>
    </value>
  </block>
  <block type="math_random_int">
   <value name="FROM">
    <shadow type="math_number">
      <field name="NUM">1</field>
    </shadow>
  </value>
  <value name="TO">
    <shadow type="math_number">
      <field name="NUM">100</field>
    </shadow>
  </value>
</block>
<block type="math_constrain">
 <value name="LOW">
  <shadow type="math_number">
    <field name="NUM">1</field>
  </shadow>
</value>
<value name="HIGH">
  <shadow type="math_number">
    <field name="NUM">100</field>
  </shadow>
</value>
</block>
<block type="base_map">
 <value name="fromLow">
  <shadow type="math_number">
    <field name="NUM">1</field>
  </shadow>
</value>
<value name="fromHigh">
  <shadow type="math_number">
    <field name="NUM">100</field>
  </shadow>
</value>
<value name="toLow">
  <shadow type="math_number">
    <field name="NUM">1</field>
  </shadow>
</value>
<value name="toHigh">
  <shadow type="math_number">
    <field name="NUM">1000</field>
  </shadow>
</value>
</block>
</category>
<category id="catLogic"  colour="210">
  <block type="logic_compare">
  </block>
  <block type="logic_operation">
  </block>
  <block type="logic_negate">
  </block>
  <block type="logic_boolean">
  </block>
  <block type="logic_null">
  </block>
  <block type="logic_true_or_false">
  </block>
</category>
<category id="catText"  colour="160">
  <block type="text">
    <field name="TEXT">hello</field>
  </block>
  <block type="text_char">
    <field name="TEXT">a</field>
  </block>
  <block type="text_join">
   <value name="A">
    <shadow type="text">
      <field name="TEXT">Hello</field>
    </shadow>
  </value>
  <value name="B">
    <shadow type="text">
      <field name="TEXT">Mixly</field>
    </shadow>
  </value>
</block>
<block type="text_join2">
  <value name="ADD0">
    <block type="text">
      <field name="TEXT">A</field>
    </block>
  </value>
  <value name="ADD1">
    <block type="text">
      <field name="TEXT">B</field>
    </block>
  </value>
  <value name="ADD2">
    <block type="text">
      <field name="TEXT">C</field>
    </block>
  </value>
</block>
<block type="text_to_number">
 <value name="VAR">
  <shadow type="text">
    <field name="TEXT">123</field>
  </shadow>
</value>
</block>
<block type="String_indexOf">
  <value name="str1">
    <shadow type="text">
      <field name="TEXT">Mixly</field>
    </shadow>
  </value>
  <value name="str2">
    <shadow type="text">
      <field name="TEXT">y</field>
    </shadow>
  </value>
</block>
<block type="substring">
  <value name="name">
   <shadow type="text">
    <field name="TEXT">substring</field>
  </shadow>
</value>
<value name="Start">
  <shadow type="math_number">
    <field name="NUM">0</field>
  </shadow>
</value>
<value name="end">
  <shadow type="math_number">
    <field name="NUM">3</field>
  </shadow>
</value>
</block>
<block type="decimal_places">
  <value name="numeral">
    <shadow type="math_number">
      <field name="NUM">6.666</field>
    </shadow>
  </value>
  <value name="decimal_places">
    <shadow type="math_number">
      <field name="NUM">2</field>
    </shadow>
  </value>
</block>
<block type="letter_conversion">
  <value name="String">
    <shadow type="math_number">
      <field name="NUM">String</field>
    </shadow>
  </value>
</block>
<block type="data_replacement">
  <value name="String">
    <shadow type="math_number">
      <field name="NUM">String</field>
    </shadow>
  </value>
  <value name="source_data">
   <shadow type="text">
    <field name="TEXT">s</field>
  </shadow>
</value>
<value name="replace">
 <shadow type="text">
  <field name="TEXT">Q</field>
</shadow>
</value>
</block>
<block type="eliminate">
  <value name="String">
    <shadow type="math_number">
      <field name="NUM">String</field>
    </shadow>
  </value>
</block>
<block type="first_and_last">
  <value name="String">
   <shadow type="text">
    <field name="TEXT">substring</field>
  </shadow>
</value>
<value name="String1">
 <shadow type="text">
  <field name="TEXT">substring</field>
</shadow>
</value>
</block>
<block type="type_conversion">
  <value name="variable">
   <shadow type="text">
    <field name="TEXT">substring</field>
  </shadow>
</value>
</block>
<block type="ascii_to_char">
  <value name="VAR">
    <shadow type="math_number">
      <field name="NUM">223</field>
    </shadow>
  </value>
</block>
<block type="char_to_ascii">
  <field name="TEXT">a</field>
</block>
<block type="number_to_text">
  <value name="VAR">
    <shadow type="math_number">
      <field name="NUM">0</field>
    </shadow>
  </value>
</block>
<block type="text_length">
 <value name="VAR">
  <shadow type="text">
    <field name="TEXT">hello</field>
  </shadow>
</value>
</block>
<block type="text_char_at">
  <value name="VAR">
    <shadow type="text">
      <field name="TEXT">hello</field>
    </shadow>
  </value>
  <value name="AT">
    <shadow type="math_number">
      <field name="NUM">0</field>
    </shadow>
  </value>
</block>
<block type="text_equals_starts_ends">
  <value name="STR1">
    <shadow type="text">
      <field name="TEXT"></field>
    </shadow>
  </value>
  <value name="STR2">
    <shadow type="text">
      <field name="TEXT"></field>
    </shadow>
  </value>
</block>
<block type="text_compareTo">
  <value name="STR1">
    <shadow type="text">
      <field name="TEXT"></field>
    </shadow>
  </value>
  <value name="STR2">
    <shadow type="text">
      <field name="TEXT"></field>
    </shadow>
  </value>
</block>
</category>
<category id="catLists"  colour="260">
  <block type="lists_create_with2">
  </block>
  <block type="lists_create_with_text2">
  </block>
  <block type="lists_length">
  </block>
  <block type="lists_getIndex">
   <value name="AT">
    <shadow type="math_number">
      <field name="NUM">1</field>
    </shadow>
  </value>
</block>
<block type="lists_setIndex">
 <value name="AT">
  <shadow type="math_number">
    <field name="NUM">1</field>
  </shadow>
</value>
</block>
<block type="lists_array2_setup">
  <field name="lists_create_type">int</field>
  <field name="lists_create_name">mylist</field>
  <statement name="lists_with_2_1_data">
    <block type="lists_array2_setup_get_data">
      <mutation items="3"></mutation>
      <value name="ADD0">
        <block type="math_number" >
          <field name="NUM">0</field>
        </block>
      </value>
      <value name="ADD1">
        <block type="math_number" >
          <field name="NUM">1</field>
        </block>
      </value><value name="ADD2">
        <block type="math_number">
          <field name="NUM">2</field>
        </block>
      </value>
      <next>
        <block type="lists_array2_setup_get_data">
          <mutation items="3"></mutation>
          <value name="ADD0">
            <block type="math_number">
              <field name="NUM">1</field>
            </block>
          </value>
          <value name="ADD1">
            <block type="math_number">
              <field name="NUM">2</field>
            </block>
          </value>
          <value name="ADD2">
            <block type="math_number">
              <field name="NUM">3</field>
            </block>
          </value>
          <next>
            <block type="lists_array2_setup_get_data">
              <mutation items="3">
              </mutation><value name="ADD0">
                <block type="math_number">
                  <field name="NUM">2</field>
                </block>
              </value>
              <value name="ADD1">
                <block type="math_number">
                  <field name="NUM">3</field>
                </block>
              </value>
              <value name="ADD2">
                <block type="math_number">
                  <field name="NUM">4</field>
                </block>
              </value>
            </block>
          </next>
        </block>
      </next>
    </block>
  </statement>
</block>
<block type="create_array2_with_text">
  <value name="name">
    <shadow type="math_number">
      <field name="NUM">array</field>
    </shadow>
  </value>
  <value name="line">
    <shadow type="math_number">
      <field name="NUM">2</field>
    </shadow>
  </value>
  <value name="list">
    <shadow type="math_number">
      <field name="NUM">2</field>
    </shadow>
  </value>
  <value name="String">
    <shadow type="math_number">
      <field name="NUM">{0,0},{0,0}</field>
    </shadow>
  </value>
</block>
<block type="array2_assignment">
  <value name="name">
    <shadow type="math_number">
      <field name="NUM">array</field>
    </shadow>
  </value>
  <value name="line">
    <shadow type="math_number">
      <field name="NUM">1</field>
    </shadow>
  </value>
  <value name="list">
    <shadow type="math_number">
      <field name="NUM">1</field>
    </shadow>
  </value>
  <value name="assignment">
    <shadow type="math_number">
      <field name="NUM">0</field>
    </shadow>
  </value>
</block>
<block type="get_array2_value">
  <value name="name">
    <shadow type="math_number">
      <field name="NUM">array</field>
    </shadow>
  </value>
  <value name="line">
    <shadow type="math_number">
      <field name="NUM">1</field>
    </shadow>
  </value>
  <value name="list">
    <shadow type="math_number">
      <field name="NUM">1</field>
    </shadow>
  </value>
</block>
<block type="loop_array">
  <value name="name">
    <shadow type="math_number">
      <field name="NUM">array</field>
    </shadow>
  </value>
</block>
<block type="lists_array2_get_length">
</block>
</category>
<category id="catVar" colour="330" custom="VARIABLE">
</category>
<category id="catFun" custom="PROCEDURE" colour="290">
</category>
<category id="catSerialPort"  colour="65">
 <block type="serial_begin">
  <value name="CONTENT">
    <shadow type="math_number">
      <field name="NUM">9600</field>
    </shadow>
  </value>
</block>
<block type="serial_write">
</block>
<block type="serial_print">
  <field name="serial_select">Serial</field>
  <field name="new_line">println</field>
</block>
<block type="serial_print_num">
  <value name="CONTENT">
    <shadow type="math_number">
      <field name="NUM">0</field>
    </shadow>
  </value>
</block>
<block type="serial_available">
</block>
<block type="serial_readstr">
</block>
<block type="serial_readstr_until">
  <value name="CONTENT">
    <shadow type="text_char">
     <field name="TEXT">a</field>
   </shadow>
 </value>
</block>
<block type="serial_parseInt_Float">
</block>
<block type="serial_flush">
</block>
<block type="serial_softserial">
  <value name="TX">
    <shadow type="pins_digital">
      <field name="PIN">PB6</field>
    </shadow>
  </value>
  <value name="RX">
    <shadow type="pins_digital">
      <field name="PIN">PB7</field>
    </shadow>
  </value>
</block>
<block type="serial_event">
</block>
</category>
<category id="catSensor" colour="40">
  <block type="chaoshengbo2">
    <field name="Trig">PA0</field>
    <field name="Echo">PA1</field>
  </block>
  <block type="ds18b20">
    <value name="PIN">
      <shadow type="pins_digital"></shadow>
    </value>
  </block>
  <block type="tcs230_init">
    <value name="tcs230_s0">
      <shadow type="pins_digital">
        <field name="PIN">PA0</field>
      </shadow>
    </value>
    <value name="tcs230_s1">
      <shadow type="pins_digital">
        <field name="PIN">PA1</field>
      </shadow>
    </value>
    <value name="tcs230_s2">
      <shadow type="pins_digital">
        <field name="PIN">PA2</field>
      </shadow>
    </value>
    <value name="tcs230_s3">
      <shadow type="pins_digital">
        <field name="PIN">PA3</field>
      </shadow>
    </value>
    <value name="tcs230_led">
      <shadow type="pins_digital">
        <field name="PIN">PA4</field>
      </shadow>
    </value>
    <value name="tcs230_out">
      <shadow type="pins_digital">
        <field name="PIN">PA5</field>
      </shadow>
    </value>
  </block>
  <block type="tcs230_Get_RGB">
  </block>
</category>
<category id="catActuator_motor" colour="100">
  <block type="Mixly_motor">
    <value name="PIN1">
      <shadow type="pins_pwm">
        <field name="PIN">PA0</field>
      </shadow>
    </value>
    <value name="PIN2">
      <shadow type="pins_digital">
        <field name="PIN">PA1</field>
      </shadow>
    </value>
    <value name="PIN_EN">
      <shadow type="pins_pwm">
        <field name="PIN">PA2</field>
      </shadow>
    </value>
    <value name="speed">
      <shadow type="math_number">
        <field name="NUM">100</field>
      </shadow>
    </value>
  </block>
  <block type="Motor_8833">
    <value name="PIN1">
      <shadow type="pins_pwm">
        <field name="PIN">PA0</field>
      </shadow>
    </value>
    <value name="PIN2">
      <shadow type="pins_digital">
        <field name="PIN">PA1</field>
      </shadow>
    </value>
    <value name="speed">
      <shadow type="math_number">
        <field name="NUM">100</field>
      </shadow>
    </value>
  </block>
  <block type="servo_move">
    <value name="PIN">
      <shadow type="pins_digital"></shadow>
    </value>
    <value name="DEGREE">
      <shadow type="math_number">
        <field name="NUM">0</field>
      </shadow>
    </value>
    <value name="DELAY_TIME">
      <shadow type="math_number">
        <field name="NUM">0</field>
      </shadow>
    </value>
  </block>
  <block type="servo_writeMicroseconds">
    <value name="PIN">
      <shadow type="pins_digital"></shadow>
    </value>
    <value name="DEGREE">
      <shadow type="math_number">
        <field name="NUM">1500</field>
      </shadow>
    </value>
  </block>
  <block type="servo_read_degrees">
    <value name="PIN">
     <shadow type="pins_digital"></shadow>
   </value>
 </block>
 <block type="group_stepper_setup">
  <value name="PIN1">
   <shadow type="pins_digital">
    <field name="PIN">PA0</field>
  </shadow>
</value>
<value name="PIN2">
 <shadow type="pins_digital">
  <field name="PIN">PA1</field>
</shadow>
</value>
<value name="steps">
  <shadow type="math_number">
    <field name="NUM">100</field>
  </shadow>
</value>
<value name="speed">
  <shadow type="math_number">
    <field name="NUM">10</field>
  </shadow>
</value>
</block>
<block type="group_stepper_setup2">
  <value name="PIN1">
   <shadow type="pins_digital">
    <field name="PIN">PA0</field>
  </shadow>
</value>
<value name="PIN2">
 <shadow type="pins_digital">
  <field name="PIN">PA1</field>
</shadow>
</value>
<value name="PIN3">
 <shadow type="pins_digital">
  <field name="PIN">PA2</field>
</shadow>
</value>
<value name="PIN4">
 <shadow type="pins_digital">
  <field name="PIN">PA3</field>
</shadow>
</value>
<value name="steps">
  <shadow type="math_number">
    <field name="NUM">100</field>
  </shadow>
</value>
<value name="speed">
  <shadow type="math_number">
    <field name="NUM">10</field>
  </shadow>
</value>
</block>
<block type="group_stepper_move">
  <value name="step">
    <shadow type="math_number">
      <field name="NUM">10</field>
    </shadow>
  </value>
</block>
</category>
<category id="catMonitor" colour="180">
  <category id="catLCD" colour="180">
    <block type="group_lcd_init2">
      <value name="device">
        <shadow type="math_number">
          <field name="NUM">0x27</field>
        </shadow>
      </value>
    </block>
    <block type="group_lcd_init3">
      <field name="RS">PA0</field>
      <field name="EN">PA1</field>
      <field name="D4">PA2</field>
      <field name="D5">PA3</field>
      <field name="D6">PA4</field>
      <field name="D7">PA5</field>
    </block>
    <block type="group_lcd_print">
      <value name="TEXT">
       <block type="text">
        <field name="TEXT"></field>
      </block>
    </value>
    <value name="TEXT2">
     <block type="text">
      <field name="TEXT"></field>
    </block>
  </value>
</block>
<block type="group_lcd_print2">
  <value name="row">
   <shadow type="math_number">
    <field name="NUM">1</field>
  </shadow>
</value>
<value name="column">
 <shadow type="math_number">
  <field name="NUM">1</field>
</shadow>
</value>
<value name="TEXT">
 <block type="text">
  <field name="TEXT"></field>
</block>
</value>
</block>
-<block type="lcd_display_pattern">
  <field name="name">mylcd</field>
  <field name="number">0</field>
  <value name="row">
    <shadow type="math_number">
      <field name="NUM">1</field>
    </shadow>
  </value>
  <value name="column">
    <shadow type="math_number">
      <field name="NUM">1</field>
    </shadow>
  </value>
  <value name="pattern">
    <block type="lcd_pattern">
      <field name=\ "VAR\">lcd</field>
      <field name=\ "a81\">FALSE</field>
      <field name=\ "a82\">FALSE</field>
      <field name=\ "a83\">FALSE</field>
      <field name=\ "a84\">FALSE</field>
      <field name=\ "a85\">FALSE</field>
      <field name=\ "a71\">FALSE</field>
      <field name=\ "a72\">TRUE</field>
      <field name=\ "a73\">TRUE</field>
      <field name=\ "a74\">TRUE</field>
      <field name=\ "a75\">FALSE</field>
      <field name=\ "a61\">TRUE</field>
      <field name=\ "a62\">FALSE</field>
      <field name=\ "a63\">FALSE</field>
      <field name=\ "a64\">FALSE</field>
      <field name=\ "a65\">TRUE</field>
      <field name=\ "a51\">TRUE</field>
      <field name=\ "a52\">FALSE</field>
      <field name=\ "a53\">TRUE</field>
      <field name=\ "a54\">FALSE</field>
      <field name=\ "a55\">TRUE</field>
      <field name=\ "a41\">TRUE</field>
      <field name=\ "a42\">FALSE</field>
      <field name=\ "a43\">TRUE</field>
      <field name=\ "a44\">FALSE</field>
      <field name=\ "a45\">TRUE</field>
      <field name=\ "a31\">TRUE</field>
      <field name=\ "a32\">FALSE</field>
      <field name=\ "a33\">FALSE</field>
      <field name=\ "a34\">FALSE</field>
      <field name=\ "a35\">TRUE</field>
      <field name=\ "a21\">FALSE</field>
      <field name=\ "a22\">TRUE</field>
      <field name=\ "a23\">TRUE</field>
      <field name=\ "a24\">TRUE</field>
      <field name=\ "a25\">FALSE</field>
      <field name=\ "a11\">FALSE</field>
      <field name=\ "a12\">FALSE</field>
      <field name=\ "a13\">FALSE</field>
      <field name=\ "a14\">FALSE</field>
      <field name=\ "a15\">FALSE</field>
    </block>
  </value>
</block>
<block type="group_lcd_power">
  <field name="STAT">clear</field>
</block>
</category>
<category id="catOLED" colour="180">
  <block type="arduino_oled_begin_i2c">
    <field name="arduino_oled_begin_type">128x64</field>
    <field name="oled_begin_name">display</field>
    <value name="oled_begin_pin_reset">
      <shadow type="pins_digital">
        <field name="PIN">PA0</field>
      </shadow>
    </value>
    <value name="oled_begin_address">
      <shadow type="math_number">
        <field name="NUM">0x3C</field>
      </shadow>
    </value>
  </block>

  <block type="arduino_oled_begin_spi_1">
    <value name="oled_begin_mosi">
      <shadow type="pins_digital">
        <field name="PIN">PA0</field>
      </shadow>
    </value>
    <value name="oled_begin_clk">
      <shadow type="pins_digital">
        <field name="PIN">PA1</field>
      </shadow>
    </value>
    <value name="oled_begin_dc">
      <shadow type="pins_digital">
        <field name="PIN">PA2</field>
      </shadow>
    </value>
    <value name="oled_begin_reset">
      <shadow type="pins_digital">
        <field name="PIN">PA3</field>
      </shadow>
    </value>
    <value name="oled_begin_cs">
      <shadow type="pins_digital">
        <field name="PIN">PA4</field>
      </shadow>
    </value>
  </block>

  <block type="arduino_oled_begin_spi_2">
    <value name="oled_begin_dc">
      <shadow type="pins_digital">
        <field name="PIN">PA0</field>
      </shadow>
    </value>
    <value name="oled_begin_reset">
      <shadow type="pins_digital">
        <field name="PIN">PA1</field>
      </shadow>
    </value>
    <value name="oled_begin_cs">
      <shadow type="pins_digital">
        <field name="PIN">PA2</field>
      </shadow>
    </value>
  </block>

  <block type="arduino_oled_set_rotation">
  </block>

  <block type="arduino_oled_clear_update_display">
  </block>

  <block type="arduino_oled_set_cursor">
    <value name="set_cursor_x">
      <shadow type="math_number">
        <field name="NUM">0</field>
      </shadow>
    </value>
    <value name="set_cursor_y">
      <shadow type="math_number">
        <field name="NUM">0</field>
      </shadow>
    </value>
  </block>

  <block type="arduino_oled_set_font">
  </block>

  <block type="arduino_oled_set_font_color">
  </block>

  <block type="arduino_oled_show_text">
    <value name="oled_show_text_auto_linefeed_data">
      <shadow type="text">
        <field name="TEXT">Hello world!</field>
      </shadow>
    </value>
  </block>

  <block type="arduino_oled_show_num">
    <field name="oled_name">display</field>
    <field name="show_num_type">print</field>
    <field name="oled_show_num_auto_linefeed_type">DEC</field>
    <value name="oled_show_num_auto_linefeed_data">
      <shadow type="math_number">
        <field name="NUM">123</field>
      </shadow>
    </value>
  </block>

  <block type="arduino_oled_draw_pixel">
    <value name="oled_draw_pixel_x">
      <shadow type="math_number">
        <field name="NUM">0</field>
      </shadow>
    </value>
    <value name="oled_draw_pixel_y">
      <shadow type="math_number">
        <field name="NUM">0</field>
      </shadow>
    </value>
  </block>

  <block type="arduino_oled_draw_line">
    <value name="oled_draw_line_start_x">
      <shadow type="math_number">
        <field name="NUM">0</field>
      </shadow>
    </value>
    <value name="oled_draw_line_start_y">
      <shadow type="math_number">
        <field name="NUM">0</field>
      </shadow>
    </value>
    <value name="oled_draw_line_end_x">
      <shadow type="math_number">
        <field name="NUM">127</field>
      </shadow>
    </value>
    <value name="oled_draw_line_end_y">
      <shadow type="math_number">
        <field name="NUM">63</field>
      </shadow>
    </value>
  </block>

  <block type="arduino_oled_draw_line1">
    <value name="oled_draw_line_start_x">
      <shadow type="math_number">
        <field name="NUM">0</field>
      </shadow>
    </value>
    <value name="oled_draw_line_start_y">
      <shadow type="math_number">
        <field name="NUM">0</field>
      </shadow>
    </value>
    <value name="oled_draw_line_length">
      <shadow type="math_number">
        <field name="NUM">127</field>
      </shadow>
    </value>
  </block>

  <block type="arduino_oled_draw_rect">
    <value name="oled_draw_rect_x">
      <shadow type="math_number">
        <field name="NUM">0</field>
      </shadow>
    </value>
    <value name="oled_draw_rect_y">
      <shadow type="math_number">
        <field name="NUM">0</field>
      </shadow>
    </value>
    <value name="oled_draw_rect_width">
      <shadow type="math_number">
        <field name="NUM">127</field>
      </shadow>
    </value>
    <value name="oled_draw_rect_height">
      <shadow type="math_number">
        <field name="NUM">63</field>
      </shadow>
    </value>
  </block>

  <block type="arduino_oled_draw_RoundRect">
    <value name="oled_draw_rect_x">
      <shadow type="math_number">
        <field name="NUM">0</field>
      </shadow>
    </value>
    <value name="oled_draw_rect_y">
      <shadow type="math_number">
        <field name="NUM">0</field>
      </shadow>
    </value>
    <value name="oled_draw_rect_width">
      <shadow type="math_number">
        <field name="NUM">127</field>
      </shadow>
    </value>
    <value name="oled_draw_rect_height">
      <shadow type="math_number">
        <field name="NUM">63</field>
      </shadow>
    </value>
    <value name="oled_draw_rect_radius">
      <shadow type="math_number">
        <field name="NUM">5</field>
      </shadow>
    </value>
  </block>

  <block type="arduino_oled_draw_circle">
    <value name="oled_draw_circle_x">
      <shadow type="math_number">
        <field name="NUM">63</field>
      </shadow>
    </value>
    <value name="oled_draw_circle_y">
      <shadow type="math_number">
        <field name="NUM">31</field>
      </shadow>
    </value>
    <value name="oled_draw_circle_radius">
      <shadow type="math_number">
        <field name="NUM">31</field>
      </shadow>
    </value>
  </block>

  <block type="arduino_oled_draw_CircleHelper">
    <value name="oled_draw_circle_x">
      <shadow type="math_number">
        <field name="NUM">63</field>
      </shadow>
    </value>
    <value name="oled_draw_circle_y">
      <shadow type="math_number">
        <field name="NUM">31</field>
      </shadow>
    </value>
    <value name="oled_draw_circle_radius">
      <shadow type="math_number">
        <field name="NUM">31</field>
      </shadow>
    </value>
    <value name="oled_draw_circle_cornername">
      <shadow type="math_number">
        <field name="NUM">0x0</field>
      </shadow>
      <block type="arduino_oled_draw_CircleHelper_data">
      </block>
    </value>
  </block>

  <block type="arduino_oled_fill_CircleHelper">
    <value name="oled_draw_circle_x">
      <shadow type="math_number">
        <field name="NUM">63</field>
      </shadow>
    </value>
    <value name="oled_draw_circle_y">
      <shadow type="math_number">
        <field name="NUM">20</field>
      </shadow>
    </value>
    <value name="oled_draw_circle_radius">
      <shadow type="math_number">
        <field name="NUM">20</field>
      </shadow>
    </value>
    <value name="oled_draw_circle_cornername">
      <shadow type="math_number">
        <field name="NUM">0x0</field>
      </shadow>
      <block type="arduino_oled_fill_CircleHelper_data">
      </block>
    </value>
    <value name="oled_draw_circle_delta">
      <shadow type="math_number">
        <field name="NUM">20</field>
      </shadow>
    </value>
  </block>

  <block type="arduino_oled_draw_ellipse">
    <field name="oled_name">display</field>
    <value name="oled_draw_ellipse_x">
      <shadow type="math_number">
        <field name="NUM">64</field>
      </shadow>
    </value>
    <value name="oled_draw_ellipse_y">
      <shadow type="math_number">
        <field name="NUM">32</field>
      </shadow>
    </value>
    <value name="oled_draw_ellipse_x_radius">
      <shadow type="math_number">
        <field name="NUM">30</field>
      </shadow>
    </value>
    <value name="oled_draw_ellipse_y_radius">
      <shadow type="math_number">
        <field name="NUM">20</field>
      </shadow>
    </value>
    <value name="oled_draw_ellipse_cornername">
      <shadow type="math_number">
        <field name="NUM">0x0</field>
      </shadow>
      <block type="arduino_oled_draw_CircleHelper_data">
      </block>
    </value>
  </block>

  <block type="arduino_oled_draw_triangle">
    <value name="oled_draw_triangle_x1">
      <shadow type="math_number">
        <field name="NUM">0</field>
      </shadow>
    </value>
    <value name="oled_draw_triangle_y1">
      <shadow type="math_number">
        <field name="NUM">0</field>
      </shadow>
    </value>
    <value name="oled_draw_triangle_x2">
      <shadow type="math_number">
        <field name="NUM">127</field>
      </shadow>
    </value>
    <value name="oled_draw_triangle_y2">
      <shadow type="math_number">
        <field name="NUM">0</field>
      </shadow>
    </value>
    <value name="oled_draw_triangle_x3">
      <shadow type="math_number">
        <field name="NUM">63</field>
      </shadow>
    </value>
    <value name="oled_draw_triangle_y3">
      <shadow type="math_number">
        <field name="NUM">63</field>
      </shadow>
    </value>
  </block>

  <block type="tool_modulus_show">
    <field name="VAR">bitmap</field>
    <field name="x">96</field>
    <field name="save_hz">TRUE</field>
    <value name="input_data">
      <block type="tool_modulus">
        <field name="bitmap_formats">1</field>
        <field name="modulus_way">2</field>
        <field name="modulus_direction">1</field>
        <field name="hz_sharp">STHeiti</field>
        <field name="hz_line_height">16</field>
        <field name="bitmap_width">48</field>
        <field name="bitmap_height">16</field>
        <field name="input_data">米思齐</field>
      </block>
    </value>
  </block>

  <block type="arduino_oled_draw_bitmap">
    <value name="oled_draw_bitmap_x">
      <shadow type="math_number">
        <field name="NUM">0</field>
      </shadow>
    </value>
    <value name="oled_draw_bitmap_y">
      <shadow type="math_number">
        <field name="NUM">0</field>
      </shadow>
    </value>
    <value name="oled_draw_bitmap_data">
      <shadow type="math_number">
        <field name="NUM">bitmap</field>
      </shadow>
    </value>
    <value name="oled_draw_bitmap_width">
      <shadow type="math_number">
        <field name="NUM">128</field>
      </shadow>
    </value>
    <value name="oled_draw_bitmap_height">
      <shadow type="math_number">
        <field name="NUM">64</field>
      </shadow>
    </value>
  </block>
</category>
<category id="catSTM32TFT" name="TFT" colour="180">
  <block type="arduino_st7735_begin_software">
    <value name="st7735_rst">
      <shadow type="pins_digital">
        <field name="PIN">PA0</field>
      </shadow>
    </value>
    <value name="st7735_cs">
      <shadow type="pins_digital">
        <field name="PIN">PA1</field>
      </shadow>
    </value>
    <value name="st7735_dc">
      <shadow type="pins_digital">
        <field name="PIN">PA2</field>
      </shadow>
    </value>
    <value name="st7735_mosi">
      <shadow type="pins_digital">
        <field name="PIN">PA3</field>
      </shadow>
    </value>
    <value name="st7735_sclk">
      <shadow type="pins_digital">
        <field name="PIN">PA4</field>
      </shadow>
    </value>
  </block>

  <block type="arduino_st7735_begin_hardware">
    <value name="st7735_rst">
      <shadow type="pins_digital">
        <field name="PIN">PA0</field>
      </shadow>
    </value>
    <value name="st7735_cs">
      <shadow type="pins_digital">
        <field name="PIN">PA1</field>
      </shadow>
    </value>
    <value name="st7735_dc">
      <shadow type="pins_digital">
        <field name="PIN">PA2</field>
      </shadow>
    </value>
  </block>

  <block type="arduino_st7735_backlight">
    <value name="st7735_backlight_pin">
      <shadow type="pins_pwm">
        <field name="PIN">PA3</field>
      </shadow>
    </value>
    <value name="st7735_backlight_brightness">
      <shadow type="math_number">
        <field name="NUM">255</field>
      </shadow>
    </value>
  </block>
  
  <block type="arduino_st7735_set_rotation">
  </block>

  <block type="arduino_st7735_set_cursor">
    <value name="set_cursor_x">
      <shadow type="math_number">
        <field name="NUM">0</field>
      </shadow>
    </value>
    <value name="set_cursor_y">
      <shadow type="math_number">
        <field name="NUM">0</field>
      </shadow>
    </value>
  </block>

  <block type="arduino_st7735_set_text_size">
  </block>

  <block type="arduino_st7735_color">
  </block>
  
  <block type="arduino_st7735_color_2020_07_20">
  </block>

  <block type="arduino_st7735_set_text_screen_color">
    <field name="st7735_name">tft</field>
    <field name="choose_type">setTextColor</field>
    <value name="set_text_color_data">
      <shadow type="math_number">
        <field name="NUM">0xFCDF</field>
      </shadow>
      <block type="arduino_st7735_color">
        <field name="st7735_color_type">#ff9966</field>
      </block>
    </value>
  </block>

  <block type="arduino_st7735_set_text_background_color">
    <field name="st7735_name">tft</field>
    <value name="set_text_color_data">
      <shadow type="math_number">
        <field name="NUM">0xFCDF</field>
      </shadow>
      <block type="arduino_st7735_color">
        <field name="st7735_color_type">#ff9966</field>
      </block>
    </value>
    <value name="set_text_color_background">
      <shadow type="math_number">
        <field name="NUM">0xFCDF</field>
      </shadow>
      <block type="arduino_st7735_color">
        <field name="st7735_color_type">#000000</field>
      </block>
    </value>
  </block>

  <block type="arduino_st7735_set_text">
    <field name="st7735_name">tft</field>
    <field name="set_text_size">0</field>
    <field name="set_text_linebreak">FALSE</field>
    <value name="set_text_x">
      <shadow type="math_number">
        <field name="NUM">0</field>
      </shadow>
    </value>
    <value name="set_text_y">
      <shadow type="math_number">
        <field name="NUM">0</field>
      </shadow>
    </value>
    <value name="set_text_color">
      <block type="arduino_st7735_color">
        <field name="st7735_color_type">#ff9966</field>
      </block>
    </value>
    <value name="set_background_color">
      <block type="arduino_st7735_color">
        <field name="st7735_color_type">#000000</field>
      </block>
    </value>
    <value name="set_text_data">
      <shadow type="text">
        <field name="TEXT">hello</field>
      </shadow>
    </value>
  </block>

  <block type="arduino_st7735_show_text">
    <value name="st7735_print_data">
      <shadow type="text">
        <field name="TEXT">Hello</field>
      </shadow>
    </value>
  </block>

  <block type="arduino_st7735_show_num">
    <field name="st7735_name">tft</field>
    <field name="show_num_type">print</field>
    <field name="st7735_print_type">DEC</field>
    <value name="st7735_print_data">
      <shadow type="math_number">
        <field name="NUM">123</field>
      </shadow>
    </value>
  </block>

  <block type="arduino_st7735_draw_pixel">
    <field name="st7735_name">tft</field>
    <value name="st7735_draw_pixel_x">
      <shadow type="math_number">
        <field name="NUM">0</field>
      </shadow>
    </value>
    <value name="st7735_draw_pixel_y">
      <shadow type="math_number">
        <field name="NUM">0</field>
      </shadow>
    </value>
    <value name="st7735_draw_pixel_color">
      <shadow type="math_number">
        <field name="NUM">0xFCDF</field>
      </shadow>
      <block type="arduino_st7735_color">
        <field name="st7735_color_type">#ff9966</field>
      </block>
    </value>
  </block>

  <block type="arduino_st7735_draw_line">
    <field name="st7735_name">tft</field>
    <value name="st7735_draw_pixel_start_x">
      <shadow type="math_number">
        <field name="NUM">0</field>
      </shadow>
    </value>
    <value name="st7735_draw_pixel_start_y">
      <shadow type="math_number">
        <field name="NUM">0</field>
      </shadow>
    </value>
    <value name="st7735_draw_pixel_end_x">
      <shadow type="math_number">
        <field name="NUM">127</field>
      </shadow>
    </value>
    <value name="st7735_draw_pixel_end_y">
      <shadow type="math_number">
        <field name="NUM">127</field>
      </shadow>
    </value>
    <value name="st7735_draw_pixel_color">
      <shadow type="math_number">
        <field name="NUM">0xFCDF</field>
      </shadow>
      <block type="arduino_st7735_color">
        <field name="st7735_color_type">#ff9966</field>
      </block>
    </value>
  </block>

  <block type="arduino_st7735_draw_line1">
    <field name="st7735_name">tft</field>
    <field name="st7735_draw_line1_type">drawFastHLine</field>
    <value name="st7735_draw_pixel_start_x">
      <shadow type="math_number">
        <field name="NUM">0</field>
      </shadow>
    </value>
    <value name="st7735_draw_pixel_start_y">
      <shadow type="math_number">
        <field name="NUM">0</field>
      </shadow>
    </value>
    <value name="st7735_draw_pixel_length">
      <shadow type="math_number">
        <field name="NUM">127</field>
      </shadow>
    </value>
    <value name="st7735_draw_pixel_color">
      <shadow type="math_number">
        <field name="NUM">0xFCDF</field>
      </shadow>
      <block type="arduino_st7735_color">
        <field name="st7735_color_type">#ff9966</field>
      </block>
    </value>
  </block>

  <block type="arduino_st7735_draw_rect">
    <value name="st7735_draw_rect_x">
      <shadow type="math_number">
        <field name="NUM">0</field>
      </shadow>
    </value>
    <value name="st7735_draw_rect_y">
      <shadow type="math_number">
        <field name="NUM">0</field>
      </shadow>
    </value>
    <value name="st7735_draw_rect_width">
      <shadow type="math_number">
        <field name="NUM">127</field>
      </shadow>
    </value>
    <value name="st7735_draw_rect_hight">
      <shadow type="math_number">
        <field name="NUM">127</field>
      </shadow>
    </value>
    <value name="st7735_draw_rect_color">
      <shadow type="math_number">
        <field name="NUM">0xFCDF</field>
      </shadow>
      <block type="arduino_st7735_color">
        <field name="st7735_color_type">#ff9966</field>
      </block>
    </value>
  </block>

  <block type="arduino_st7735_draw_Roundrect">
    <value name="st7735_draw_rect_x">
      <shadow type="math_number">
        <field name="NUM">0</field>
      </shadow>
    </value>
    <value name="st7735_draw_rect_y">
      <shadow type="math_number">
        <field name="NUM">0</field>
      </shadow>
    </value>
    <value name="st7735_draw_rect_width">
      <shadow type="math_number">
        <field name="NUM">127</field>
      </shadow>
    </value>
    <value name="st7735_draw_rect_hight">
      <shadow type="math_number">
        <field name="NUM">127</field>
      </shadow>
    </value>
    <value name="st7735_draw_rect_radius">
      <shadow type="math_number">
        <field name="NUM">5</field>
      </shadow>
    </value>
    <value name="st7735_draw_rect_color">
      <shadow type="math_number">
        <field name="NUM">0xFCDF</field>
      </shadow>
      <block type="arduino_st7735_color">
        <field name="st7735_color_type">#ff9966</field>
      </block>
    </value>
  </block>

  <block type="arduino_st7735_draw_circle">
    <field name="st7735_name">tft</field>
    <field name="oled_draw_circle_type">draw</field>
    <value name="st7735_draw_circle_x">
      <shadow type="math_number">
        <field name="NUM">64</field>
      </shadow>
    </value>
    <value name="st7735_draw_circle_y">
      <shadow type="math_number">
        <field name="NUM">64</field>
      </shadow>
    </value>
    <value name="st7735_draw_circle_radius">
      <shadow type="math_number">
        <field name="NUM">63</field>
      </shadow>
    </value>
    <value name="st7735_draw_circle_color">
      <shadow type="math_number">
        <field name="NUM">0xFCDF</field>
      </shadow>
      <block type="arduino_st7735_color">
        <field name="st7735_color_type">#ff9966</field>
      </block>
    </value>
  </block>

  <block type="arduino_st7735_draw_CircleHelper">
    <field name="st7735_name">tft</field>
    <value name="st7735_draw_circle_x">
      <shadow type="math_number">
        <field name="NUM">64</field>
      </shadow>
    </value>
    <value name="st7735_draw_circle_y">
      <shadow type="math_number">
        <field name="NUM">64</field>
      </shadow>
    </value>
    <value name="st7735_draw_circle_radius">
      <shadow type="math_number">
        <field name="NUM">63</field>
      </shadow>
    </value>
    <value name="st7735_draw_circle_cornername">
      <shadow type="math_number">
        <field name="NUM">0x0</field>
      </shadow>
      <block type="arduino_oled_draw_CircleHelper_data">
      </block>
    </value>
    <value name="st7735_draw_circle_color">
      <shadow type="math_number">
        <field name="NUM">0xFCDF</field>
      </shadow>
      <block type="arduino_st7735_color">
        <field name="st7735_color_type">#ff9966</field>
      </block>
    </value>
  </block>

  <block type="arduino_st7735_fill_CircleHelper">
    <field name="st7735_name">tft</field>
    <value name="st7735_draw_circle_x">
      <shadow type="math_number">
        <field name="NUM">20</field>
      </shadow>
    </value>
    <value name="st7735_draw_circle_y">
      <shadow type="math_number">
        <field name="NUM">20</field>
      </shadow>
    </value>
    <value name="st7735_draw_circle_radius">
      <shadow type="math_number">
        <field name="NUM">20</field>
      </shadow>
    </value>
    <value name="st7735_draw_circle_cornername">
      <shadow type="math_number">
        <field name="NUM">0x0</field>
      </shadow>
      <block type="arduino_oled_fill_CircleHelper_data">
      </block>
    </value>
    <value name="st7735_draw_circle_delta">
      <shadow type="math_number">
        <field name="NUM">20</field>
      </shadow>
    </value>
    <value name="st7735_draw_circle_color">
      <shadow type="math_number">
        <field name="NUM">0xFCDF</field>
      </shadow>
      <block type="arduino_st7735_color">
        <field name="st7735_color_type">#ff9966</field>
      </block>
    </value>
  </block>

  <block type="arduino_st7735_draw_ellipse">
    <field name="st7735_name">tft</field>
    <value name="st7735_draw_ellipse_x">
      <shadow type="math_number">
        <field name="NUM">64</field>
      </shadow>
    </value>
    <value name="st7735_draw_ellipse_y">
      <shadow type="math_number">
        <field name="NUM">64</field>
      </shadow>
    </value>
    <value name="st7735_draw_ellipse_x_radius">
      <shadow type="math_number">
        <field name="NUM">30</field>
      </shadow>
    </value>
    <value name="st7735_draw_ellipse_y_radius">
      <shadow type="math_number">
        <field name="NUM">20</field>
      </shadow>
    </value>
    <value name="st7735_draw_ellipse_cornername">
      <shadow type="math_number">
        <field name="NUM">0x0</field>
      </shadow>
      <block type="arduino_oled_draw_CircleHelper_data">
      </block>
    </value>
    <value name="st7735_draw_ellipse_color">
      <shadow type="math_number">
        <field name="NUM">0xFCDF</field>
      </shadow>
      <block type="arduino_st7735_color">
        <field name="st7735_color_type">#ff9966</field>
      </block>
    </value>
  </block>

  <block type="arduino_st7735_draw_triangle">
    <field name="st7735_name">tft</field>
    <field name="st7735_draw_triangle_type">draw</field>
    <value name="st7735_draw_triangle_x1">
      <shadow type="math_number">
        <field name="NUM">0</field>
      </shadow>
    </value>
    <value name="st7735_draw_triangle_y1">
      <shadow type="math_number">
        <field name="NUM">0</field>
      </shadow>
    </value>
    <value name="st7735_draw_triangle_x2">
      <shadow type="math_number">
        <field name="NUM">0</field>
      </shadow>
    </value>
    <value name="st7735_draw_triangle_y2">
      <shadow type="math_number">
        <field name="NUM">0</field>
      </shadow>
    </value>
    <value name="st7735_draw_triangle_x3">
      <shadow type="math_number">
        <field name="NUM">127</field>
      </shadow>
    </value>
    <value name="st7735_draw_triangle_y3">
      <shadow type="math_number">
        <field name="NUM">127</field>
      </shadow>
    </value>
    <value name="st7735_draw_triangle_color">
      <shadow type="math_number">
        <field name="NUM">0xFCDF</field>
      </shadow>
      <block type="arduino_st7735_color">
        <field name="st7735_color_type">#ff9966</field>
      </block>
    </value>
  </block>

  <block type="tool_modulus_show">
    <field name="VAR">bitmap</field>
    <field name="x">96</field>
    <field name="save_hz">TRUE</field>
    <value name="input_data">
      <block type="tool_modulus">
        <field name="bitmap_formats">1</field>
        <field name="modulus_way">2</field>
        <field name="modulus_direction">1</field>
        <field name="hz_sharp">STHeiti</field>
        <field name="hz_line_height">16</field>
        <field name="bitmap_width">48</field>
        <field name="bitmap_height">16</field>
        <field name="input_data">米思齐</field>
      </block>
    </value>
  </block>

  <block type="arduino_st7735_draw_bitmap">
    <value name="oled_draw_bitmap_x">
      <shadow type="math_number">
        <field name="NUM">0</field>
      </shadow>
    </value>
    <value name="oled_draw_bitmap_y">
      <shadow type="math_number">
        <field name="NUM">0</field>
      </shadow>
    </value>
    <value name="oled_draw_bitmap_data">
      <shadow type="math_number">
        <field name="NUM">bitmap</field>
      </shadow>
    </value>
    <value name="oled_draw_bitmap_width">
      <shadow type="math_number">
        <field name="NUM">128</field>
      </shadow>
    </value>
    <value name="oled_draw_bitmap_height">
      <shadow type="math_number">
        <field name="NUM">128</field>
      </shadow>
    </value>
    <value name="st7735_color">
      <shadow type="math_number">
        <field name="NUM">0xFCDF</field>
      </shadow>
      <block type="arduino_st7735_color">
        <field name="st7735_color_type">#ff9966</field>
      </block>
    </value>
  </block>
</category>
</category>
<category id="catGroup"  colour="140">
  <category id="catI2C"  colour="140">
    <block type="i2c_master_Init"> </block>
    <block type="i2c_slave_Init"> 
     <value name="i2c_address">
      <shadow type="math_number">
        <field name="NUM">0</field>
      </shadow>
    </value>
  </block>
  <block type="i2c_begin_end_transmission">
    <value name="i2c_address">
      <shadow type="math_number">
        <field name="NUM">10</field>
      </shadow>
    </value>
  </block>
  <block type="i2c_write">
    <value name="i2c_write_data">
      <shadow type="math_number">
        <field name="NUM">0</field>
      </shadow>
    </value>
  </block>
  <block type="i2c_master_reader">
    <value name="device">
      <shadow type="math_number">
        <field name="NUM">0</field>
      </shadow>
    </value>
    <value name="bytes">
      <shadow type="math_number">
        <field name="NUM">0</field>
      </shadow>
    </value>
  </block>
  <block type="i2c_master_writerReg">
    <value name="device">
      <shadow type="math_number">
        <field name="NUM">0</field>
      </shadow>
    </value>
    <value name="regadd">
      <shadow type="math_number">
        <field name="NUM">0</field>
      </shadow>
    </value>
    <value name="value">
      <shadow type="math_number">
        <field name="NUM">0</field>
      </shadow>
    </value>
  </block>    
  <block type="i2c_master_readerReg">   
    <value name="device">
      <shadow type="math_number">
        <field name="NUM">0</field>
      </shadow>
    </value>
    <value name="regadd">
      <shadow type="math_number">
        <field name="NUM">0</field>
      </shadow>
    </value>
    <value name="bytes">
      <shadow type="math_number">
        <field name="NUM">0</field>
      </shadow>
    </value>
  </block>
  <block type="i2c_slave_write_array">
    <value name="array">
      <shadow type="math_number">
        <field name="NUM">array</field>
      </shadow>
    </value>
    <value name="length">
      <shadow type="math_number">
        <field name="NUM">1</field>
      </shadow>
    </value>
  </block>
  <block type="i2c_available"></block>
  <block type="i2c_read"></block>
  <block type="i2c_slave_onreceive">
    <value name="onReceive_length">
      <block type="variables_get">
        <field name="VAR">howMany</field> 
      </block>
    </value>
  </block>
  <block type="i2c_slave_onrequest">
  </block>
</category>
<category id="catSPI"  colour="140">
  <block type="spi_begin_master" >
   <value name="spi_slave_pin">
     <shadow type="pins_digital" >
       <field name="PIN">PA4</field>
     </shadow>
   </value>
 </block>
 <block type="spi_begin_slave">
 </block>
 <block type="spi_transfer_Init">
  <value name="slave_pin">
    <shadow type="pins_digital">
      <field name="PIN">PA4</field>
    </shadow>
  </value>
</block>
<block type="spi_transfer_1">
  <value name="transfer_data">
    <shadow type="text_char">
      <field name="TEXT">A</field>
    </shadow>
  </value>
</block>
<block type="spi_transfer_2">
  <value name="transfer_data">
    <shadow type="text_char">
      <field name="TEXT">A</field>
    </shadow>
  </value>
</block>
</category>
</category>
<category id="catStorageEEPROM" colour="0">
  <block type="store_eeprom_write_byte">
    <value name="ADDRESS">
      <shadow type="math_number">
        <field name="NUM">0</field>
      </shadow>
    </value>
    <value name="DATA">
      <shadow type="math_number">
        <field name="NUM">0</field>
      </shadow>
    </value>
  </block>
  <block type="store_eeprom_read_byte">
    <value name="ADDRESS">
      <shadow type="math_number">
        <field name="NUM">0</field>
      </shadow>
    </value>
  </block>
  <block type="store_eeprom_write_long">
    <value name="ADDRESS">
      <shadow type="math_number">
        <field name="NUM">0</field>
      </shadow>
    </value>
    <value name="DATA">
      <shadow type="math_number">
        <field name="NUM">0</field>
      </shadow>
    </value>
  </block>
  <block type="store_eeprom_read_long">
    <value name="ADDRESS">
      <shadow type="math_number">
        <field name="NUM">0</field>
      </shadow>
    </value>
  </block>
</category> 
<sep></sep>
<category id="catFactory" name="catFactory" colour="#777777">
  <block type="factory_include"></block>
  <block type="factory_function_noreturn"></block>
  <block type="factory_function_return"></block>
  <block type="factory_declare"></block>
  <block type="factory_declare2"></block>
  <block type="factory_define"></block>
  <block type="factory_callMethod_noreturn"></block>
  <block type="factory_callMethod_return"></block>
  <block type="factory_static_method_noreturn"></block>
  <block type="factory_static_method_return"></block>
  <block type="factory_block"></block>
  <block type="factory_block_return"></block>
  <block type="factory_block_with_textarea"></block>
  <block type="factory_block_return_with_textarea"></block>
</category>
<category  id="catTools" name="catTools" colour="#555555">
 <block type="IICSCAN"></block>
 <block type="factory_notes"></block>
 <block type="folding_block"></block>
 <block type="stm32f103c8t6_pin"></block>
</category>
</xml>
<script>
  if(company_block!=null){
    $('#toolbox').append(company_block);
  }
  if(myblock!=null){
    $('#toolbox').append(myblock);
  }
</script>
</body>
</html>